<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/vue.js"></script><!-- 必须先导入vue -->
		<script src="js/axios.min.js"></script>
		<script src="js/elementui.js"></script>
		<script src="js/common.js"></script>
		<link rel="stylesheet" href="css/index.css" />
	</head>
	<body>
		<div id="app">
			
		</div>
	</body>
	<script>
		new Vue({
			el:"#app",
			data:{
				
			},
			methods:{
				initData(){
					let a=[1,2,3,4];
					let b=[1,3];
					let c=a.filter(item=>b.includes(item));
					console.log(c)
				}
			},mounted(){
				this.initData();
			}
		})
	</script>
</html>